import request from "@/utils/request"

export const getWarehouseListApi = ()=>request.get('/warehouse/list')

export const getWarehousePageApi = (page,pageSize,name,cityId)=>request.get(`/warehouse?page=${page}&pageSize=${pageSize}&name=${name}&cityId=${cityId}`)

export const addWarehouseApi = (data) => request.post('/warehouse', data)

export const updateWarehouseApi = (data) => request.put(`/warehouse`, data)

export const deleteWarehouseApi = (id) => request.delete(`/warehouse/${id}`)